package com.lanou.pianke.piececomment.mapper;

import com.lanou.pianke.piece.web.entity.Pcomment;
import com.lanou.pianke.piece.web.entity.Piece;
import com.lanou.pianke.piece.web.entity.PieceIsLike;
import com.lanou.pianke.piece.web.entity.Preplay;

import java.util.List;

public interface PieceMapper {

    List<Piece> selectOneTagPieceByTagid(Integer tagId);

    List<Piece> selectAllPiece();

    Integer addPiece(Piece piece);

    Piece selectOnePieceByPid(Long pid);

    List<Pcomment> selectCommentByPieceId(String pieceId);

    List<Preplay> selectByPcommentId(String pcomment_id);

    Integer addPieceComment(Pcomment pcomment);

    Long selectPieceUidByPieceText(String pieceText);

    Pcomment selectPcommentIdAndUidBycommentText(String commentText);

    Integer insertPreplay(Preplay preplay);

    void selectPiece();

    void deleteReplayByReplayText(String replayText);

    void delPieceCommentBycommentText(String commentText);

    String selectPcommentIdBycommentText(String commentText);

    void updatePreplayStatusById(Integer id);

    String selectPieceIdByPieceText(String pieceText);

    void insertPieceLike(PieceIsLike isLike);
}
